package com.ruoyi.pos.service.impl;

import com.ruoyi.pos.domain.PosChe;
import com.ruoyi.pos.domain.PosMendian;
import com.ruoyi.pos.domain.PosShangpinItem;
import com.ruoyi.pos.mapper.PosCheMapper;
import com.ruoyi.pos.service.IPosCheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PosCheServiceImpl implements IPosCheService {
    @Autowired
    private PosCheMapper posCheMapper;

    @Override
    public int insertPosChe(PosChe posChe) {
        return posCheMapper.insertPosChe(posChe);
    }

    @Override
    public int updatePosChe(PosChe posChe) {
        return posCheMapper.updatePosChe(posChe);
    }

    @Override
    public List<PosChe> selectPosCheList(PosChe posChe) {
        return posCheMapper.selectPosCheList(posChe);
    }

    @Override
    public Integer selectMendianId(Integer shangpinId) {
        return posCheMapper.selectMendianId(shangpinId);
    }

    @Override
    public List<PosMendian> selectPosMendianList(PosChe posChe) {
        return posCheMapper.selectPosMendianList(posChe);
    }

    @Override
    public List<PosShangpinItem> selectPosShangpinItemList(PosShangpinItem posShangpinItem) {
        return posCheMapper.selectPosShangpinItemList(posShangpinItem);
    }

    @Override
    public int deletePosCheById(Integer id) {
        return posCheMapper.deletePosCheById(id);
    }
}
